package com.yueya.system.security;

import com.yueya.auth.model.TokenDto;
import com.yueya.auth.service.AuthTokenService;
import com.yueya.system.service.SysTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JwtTokenService implements AuthTokenService {
    @Autowired
    private SysTokenService tokenService;
    @Override
    public void onCreateJwtToken(TokenDto tokenDto) {
        tokenService.insert(tokenDto);
    }

    @Override
    public void expireToken(String tokenId) {
        tokenService.expireToken(tokenId);
    }
}
